import request from '@/utils/axios'

export function queryApproval(senderName, approvalStatus, current, pageSize) {
    const url = `/operation/approval?senderName=${senderName}&approvalStatus=${approvalStatus}&current=${current}&pageSize=${pageSize}`
    return request({
        url: url,
        method: 'get'
    })
}

export function approval(row) {
    return request({
        url: '/operation/decide',
        method: 'post',
        data: row
    })
}